export default class OrganizationSimpListVO  { 
  orgId!:string;
  orgName!:string;
  parentOrg!:string;
  orgType!:string;
  orgFullName!:string;
  orgNo!:string;
  orgTel!:string;
  contactName!:string;
  addrDetails!:string;
  remarks!:string;


  /**通过JSONObject创建实例对象 */
  public static getInstanceByJSONObj(jsonObj:any):OrganizationSimpListVO{  
    let instance=new OrganizationSimpListVO()  
    return Object.assign(instance, jsonObj) 
  }


  /** 通过属性参数创建实例对象 */
  public static getInstanceByParam(orgId:string,orgName:string
                                   ,parentOrg:string,orgType:string
                                   ,orgFullName:string,orgNo:string
                                   ,orgTel:string,contactName:string
                                   ,addrDetails:string,remarks:string){ 
    let instance=new OrganizationSimpListVO()  
    instance.orgId=orgId;
    instance.orgName=orgName;
    instance.parentOrg=parentOrg;
    instance.orgType=orgType;
    instance.orgFullName=orgFullName;
    instance.orgNo=orgNo;
    instance.orgTel=orgTel;
    instance.contactName=contactName;
    instance.addrDetails=addrDetails;
    instance.remarks=remarks;
    return instance 
  }


  /** 类属性的申明静态变量(适用于直接用到Class.fieldName的场景) */
   static fieldNames={
       orgId:"orgId",
      orgName:"orgName",
      parentOrg:"parentOrg",
      orgType:"orgType",
      orgFullName:"orgFullName",
      orgNo:"orgNo",
      orgTel:"orgTel",
      contactName:"contactName",
      addrDetails:"addrDetails",
      remarks:"remarks" } 
}

